package io.linfeng.service.im.server;

import io.linfeng.service.im.entity.SocketMsg;

/**
 * @author RJF
 * @date create at 2024-05-2024/5/7-19:15
 * copyright @2024 China Automotive Technology & Research Center Co.Ltd
 */
public interface WebSocketService {
    //发送消息给指定用户
    boolean privateMessage(SocketMsg socketMsg);
    //群发消息给所有用户
    void publicMessage(String userName, String message, boolean flag);
}
